{"ast":null,"code":"import apiClient from \"../http\";\nimport { profile, deleteUser } from \"../routes\";\nexport default class UserService {\n  static async profile() {\n    return apiClient.get(profile());\n  }\n  static async deleteProfile() {\n    return apiClient.get(deleteUser());\n  }\n}","map":{"version":3,"names":["apiClient","profile","deleteUser","UserService","get","deleteProfile"],"sources":["/data/messenger.client/src/services/UserService.ts"],"sourcesContent":["import apiClient from \"../http\";\nimport {AxiosResponse} from 'axios';\nimport {profile, deleteUser} from \"../routes\"\nimport {UserListItem} from \"../models/response/UserListItem\";\nimport {DeleteUserResponse} from \"../models/response/Other/DeleteUserResponse\";\n\nexport default class UserService {\n    public static async profile(): Promise<AxiosResponse<UserListItem>> {\n        return apiClient.get<UserListItem>(profile());\n    }\n\n    public static async deleteProfile(): Promise<AxiosResponse<DeleteUserResponse>> {\n        return apiClient.get<DeleteUserResponse>(deleteUser());\n    }\n}"],"mappings":"AAAA,OAAOA,SAAS,MAAM,SAAS;AAE/B,SAAQC,OAAO,EAAEC,UAAU,QAAO,WAAW;AAI7C,eAAe,MAAMC,WAAW,CAAC;EAC7B,aAAoBF,OAAO,GAAyC;IAChE,OAAOD,SAAS,CAACI,GAAG,CAAeH,OAAO,EAAE,CAAC;EACjD;EAEA,aAAoBI,aAAa,GAA+C;IAC5E,OAAOL,SAAS,CAACI,GAAG,CAAqBF,UAAU,EAAE,CAAC;EAC1D;AACJ"},"metadata":{},"sourceType":"module"}